package com.cn.qtms.common.result;//类注释设置模板

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.io.Serializable;
import java.time.Instant;

/**
 * @Name:Result
 * @Description:接口调用返回结果
 * @Author: Neil
 * @Date: 2019-08-06 14:30
 **/
@Data
public class Result<T> implements Serializable {

    private Integer code;
    private String msg;
    private Instant timestamp;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private T data;

    public Result() {
    }

}
